/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 *
 * @author wei
 */
@Entity(name="ProductPercentageQuantity")
public class ProductPercentageQuantityEntity extends DataObjectEntity implements Serializable {
    @ManyToOne
    private CompletedGoodsEntity product;
    private double percentage;
    private long quantity;
    
    @ManyToOne
    private SalesForecastEntity salesForecast;
    @ManyToOne
    private MasterProductionScheduleMonthlyEntity mpsMonthly;
    
    @ManyToOne
    private MasterProductionScheduleWeeklyEntity mpsWeekly1;
    @ManyToOne
    private MasterProductionScheduleWeeklyEntity mpsWeekly2;
    
    @ManyToOne
    private MasterProductionScheduleDailyEntity mpsDaily;

    public ProductPercentageQuantityEntity() {
        super();
    }

    public MasterProductionScheduleMonthlyEntity getMpsMonthly() {
        return mpsMonthly;
    }

    public void setMpsMonthly(MasterProductionScheduleMonthlyEntity mpsMonthly) {
        this.mpsMonthly = mpsMonthly;
    }

    public double getPercentage() {
        return percentage;
    }

    public void setPercentage(double percentage) {
        this.percentage = percentage;
    }

    public CompletedGoodsEntity getProduct() {
        return product;
    }

    public void setProduct(CompletedGoodsEntity product) {
        this.product = product;
    }

    public long getQuantity() {
        return quantity;
    }

    public void setQuantity(long quantity) {
        this.quantity = quantity;
    }

    public SalesForecastEntity getSalesForecast() {
        return salesForecast;
    }

    public void setSalesForecast(SalesForecastEntity salesForecast) {
        this.salesForecast = salesForecast;
    }

    public MasterProductionScheduleDailyEntity getMpsDaily() {
        return mpsDaily;
    }

    public void setMpsDaily(MasterProductionScheduleDailyEntity mpsDaily) {
        this.mpsDaily = mpsDaily;
    }

    public MasterProductionScheduleWeeklyEntity getMpsWeekly1() {
        return mpsWeekly1;
    }

    public void setMpsWeekly1(MasterProductionScheduleWeeklyEntity mpsWeekly1) {
        this.mpsWeekly1 = mpsWeekly1;
    }

    public MasterProductionScheduleWeeklyEntity getMpsWeekly2() {
        return mpsWeekly2;
    }

    public void setMpsWeekly2(MasterProductionScheduleWeeklyEntity mpsWeekly2) {
        this.mpsWeekly2 = mpsWeekly2;
    }

    @Override
    public String childToString() {
        return "ProductPercentageQuantityEntity{" + "product=" + product + ", percentage=" + percentage + ", quantity=" + quantity + ", salesForecast=" + salesForecast + ", mpsMonthly=" + mpsMonthly + ", mpsWeekly1=" + mpsWeekly1 + ", mpsWeekly2=" + mpsWeekly2 + ", mpsDaily=" + mpsDaily + '}';
    }
    
}
